{extend name="layout/common_layout" /}
{block name="body"}
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class="layui-this">转账管理</li>
        </ul>
        <div class="layui-tab-content">
            <form class="layui-form layui-form-pane" action="{:url('admin/Transferrecord/index')}" method="get">

                <div class="layui-inline">
                    <label class="layui-form-label">转账人：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="oneemail" value="{$oneemail}" placeholder="请输入邮箱" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">被转账人：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="twoemail" value="{$twoemail}" placeholder="请输入邮箱" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <button class="layui-btn">搜索</button>
                </div>
            </form>
            <hr>
            <form action="" method="post" class="ajax-form">
                <div class="layui-tab-item layui-show">
                    <table class="layui-table">
                        <thead>
                        <tr>
                            <th style="width: 30px;">ID</th>
                            <th>转账人</th>
                            <th>被转账人</th>
                            <th>转账类型</th>
                            <th>证券名称</th>
                            <th>证券市值</th>
                            <th>金额</th>
                            <th>转账时间</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        {foreach name="list" item="vo"}
                        <tr>
                            <td>{$vo.tr_id}</td>
                            <td>{$vo.oneemail}</td>
                            <td>{$vo.twoemail}</td>
                            {if condition="$vo.tr_type eq 1"}
                                <td style="color: red">转证券</td>
                            {/if}
                            {if condition="$vo.tr_type eq 2"}
                                <td style="color: green">转余额</td>
                            {/if}
                            {if condition="$vo.tr_type eq 3"}
                            <td style="color: blue">证券转美金</td>
                            {/if}
                            <td>{$vo.p_name}</td>
                            <td  style="color: red">{$vo.tr_market_value}</td>
                            <td style="color: green">{$vo.tr_dollar}</td>
                            <td>{$vo.tr_create_time}</td>
                            <td>
                                <a href="{:url('admin/transferrecord/detail',['id'=>$vo['tr_id']])}" class="layui-btn layui-btn-normal layui-btn-mini">查看详情</a>
                            </td>
                        </tr>
                        {/foreach}
                        </tbody>
                    </table>
                    <!--分页-->
                    {if condition="$list != null"}
                    {$list->render()}
                    {/if}
                </div>
            </form>
        </div>
    </div>
{/block}


{block name="script"}

<script>



</script>


{/block}
